package com.fa.service.impl;

import com.fa.common.utils.DingTalkRobotUtil;
import com.fa.service.DingTalkAlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DingTalkAlareServiceImpl implements DingTalkAlarmService {

    @Autowired
    private DingTalkRobotUtil dingTalkRobotUtil;

    @Override
    public void addWarehouseAlare(String msg, String alermLevel) {
        //Integer warehouseCount = warehouseMapper.warehouseListCount();
        /*DingTalkInventoryAlarm dingTalkInventoryAlarm = new DingTalkInventoryAlarm();
        dingTalkInventoryAlarm.setAlarmMsg(msg);
        dingTalkInventoryAlarm.setAlarmLevel(alermLevel);
        dingTalkInventoryAlarm.setCreateTime(new Date());*/
        dingTalkRobotUtil.sendTextMessage(msg);

    }
}
